iconhelper: Fix leak when rendering to cairo surface
authorBastien Nocera <hadess@hadess.net>
Wed, 2 Oct 2013 13:33:20 +0000 (15:33 +0200)
committerBastien Nocera <hadess@hadess.net>
Wed, 2 Oct 2013 15:21:48 +0000 (17:21 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=709264

gtk/gtkiconhelper.c

index 397ba2f3b8a7e4bff9cc8de9d87e6b41ffc0da0f..cda1e9976d3a6fcbfb57c7f8e5ba1f74b561ee86 100644 (file)
@@ -667,6 +667,7 @@ ensure_stated_surface_from_info (GtkIconHelper *self,
        (gdk_pixbuf_get_width (destination) + scale - 1) / scale;
       self->priv->rendered_surface_height = 
        (gdk_pixbuf_get_height (destination) + scale - 1) / scale;
+      g_object_unref (destination);
     }
 
   self->priv->rendered_surface = surface;